package com.xwn.bean.exception;

import com.xwn.bean.enumBean.ResultEnum;

/**
 * 系统异常对象
 * @Author duandw
 * @Date 2019/11/4 10:00
 **/
public class BodyException extends RuntimeException{

    private Integer code;

    public BodyException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}